﻿
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/site.master" CodeBehind="search_similar.aspx.cs"
    Inherits="Icst.Leaflike.Web.search.similar" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="main">
    <div style="margin-top:10px; margin-bottom:10px">
        <asp:Panel ID="searchResultPanel" runat="server">
            <asp:Panel ID="resultPanel" runat="server">
            <table cellpadding="0" cellspacing="0">
            <tr>
                <td valign="top" style="width:150px">
                    <div class="sw_menu"">
                        <h2>搜索</h2>
                        <ul>
                            <li /><li /><li /><li />
                        </ul>
                     </div>
                </td>
                <td valign="top">
                 <% foreach (Icst.Leaflike.Data.tree_similarResult r in _results)
               { %>
                   <table cellspacing="0" cellpadding="2">
                        <tr>
                            <td class="thumbnail" valign="top">
                                <a href='<%="trees/"+r.imagelink %>' mon="a=5&pn=3" target="_blank"><img src='<%="thumbnail.htm?thumbnail=true&name="+r.imagelink %>' border="1" /></a>
                            </td>
                            <td class="text" valign="top">
                                <a href='<%="tree.htm?id="+r.tree_no %>' mon="a=5&pn=3"><span><b><%=r.tree_name%></b></span></a>
                                <br />
                                <font size="-1"><%=this.Server.HtmlEncode(r.description)%></font>
                                <br />
                                <a href='<%="search_relevant.htm?tree="+r.tree_no %>' mon="a=5&pn=3" target="_blank"><span><b>相关</b></span></a>
                                <a href='<%="search_similar.htm?tree="+r.tree_no %>' mon="a=5&pn=3" target="_blank"><span><b>相似</b></span></a>
                                <%if (r.Links.Count > 0)
                                  { %>
                                <br />
                                <%foreach (var link in r.Links)
                                  {%>
                                  <a href='<%=link.Value %>' mon="a=5&pn=3" target="_blank"><span><b><%=link.Key%></b></span></a>
                                <%} %>
                                <%} %>
                            </td>
                        </tr>
                    </table>
                <% }%>
                <asp:Paginator runat="server"  ID="paginator" ShowGotoBox="false"  ShowFirstPage="false" ShowLastPage="false" ShowPageIndexList="false" 
                 PageSize="10" PagerTagName="span" PagerCssClass="num_btn" NumericButtonCount="10" CustomizeTextAlign="Left" CssClass="pager" PageListCssClass="page_list" />
                 </td></tr></table>
            </asp:Panel>
            <asp:Panel ID="emptyPanel" runat="server" style="text-align:center">
            <p class="header">没有找到相似的树!!!<br/></p>
            </asp:Panel>
        </asp:Panel>
    </div>
</asp:Content>
